package cn.sumpu.app.guoguojie.biz;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.guoguojie.domain.Doing;
import cn.sumpu.app.guoguojie.domain.Member;
import cn.sumpu.app.guoguojie.domain.Ext.PageModel;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface DoingBiz {
	public void insert(Doing doing) throws AppBusinessException;

	public void update(Doing doing) throws AppBusinessException;

	public Doing getDoingById(String id) throws AppBusinessException;
	
	public Doing getRootDoingById(String id) throws AppBusinessException;
	
	public Doing getDoingByMember(String member) throws AppBusinessException;	//取得这个会员最后一次发微博的
	
	public Doing getDoingByFamily(String member) throws AppBusinessException;	//取得这个家最后一次发微博的

	public List<Doing> getDoingList(Map<String, Object> map)throws AppBusinessException;

	public void deleteDoing(Member member,String id,String webAppPath) throws AppBusinessException;
	
	public PageModel getDoingModel(String family,Integer page) throws AppBusinessException;	
	
	public int getDoingListCount(String family)throws AppBusinessException;
	
	public void deleteDoingImg(Doing doing,String webAppPath)throws AppBusinessException;
	
	/**
	 * 转发微博
	 * @param forwardId 转发的微博ID
	 * @param content 内容
	 * @param member 会员对象
	 * @throws AppBusinessException
	 */
	public void doingForward(String forwardId,String content,Member member) throws AppBusinessException;
}
